package com.ccsoft.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import java.text.SimpleDateFormat;
import java.util.Date;

public class AToolsBroadcastReceiver extends BroadcastReceiver {
    private static final String TAG = "chanchaw";

    @Override
    public void onReceive(Context context, Intent intent) {

        Log.i(TAG, ",接收到了广播：" + intent.getAction());
//        Log.i(TAG,intent.getType());
    }

    private String now(){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return sdf.format(new Date());
    }

}
